home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 1994 January / ARPL-Jan94-Disc2of2-Partner-Edition.iso / Applications / Technical Publishing / Aldus PageMaker 5.0 / Scripts / Horizontal fraction < prev    next >
Encoding:
Text File  |  1993-07-27  |  3.2 KB  |  123 lines  |  [TEXT/ttxt]

  1. -- Aldus Corporation 1993
  2. -- Horizontal Fraction script
  3. -- applicable only for fractions with numerator 
  4. -- and denominator in a range 1...9
  5.  
  6. --***To use this script, place cursor to immediate right of 
  7. --fraction.  Select "Run script" and double-click on the file 
  8. --"Horizfrc.txt"  Detailed steps for use are at
  9. --the end of this file.
  10.  
  11. --**Print this script and use it as a reference!! 
  12.  
  13.  
  14. --Begin script
  15.  
  16. --Select the denominator and set subscript position
  17. textselect -char
  18. position subscript
  19. typeoptions dontcare, 55, 55, 0
  20.  
  21.  
  22. --Select the fraction bar, set superscript position and replace slash 
  23. --with underscore
  24. textcursor -char
  25. textselect +char
  26. position superscript
  27. typeoptions dontcare, 55, 54, 0
  28. textenter "_"
  29.  
  30.  
  31. --Select the numerator and set superscript position
  32. textcursor -char
  33. textselect -char
  34. position superscript
  35. typeoptions dontcare, 55, 55, 0
  36.  
  37. --Manually kern the fraction bar and denominator to center the 
  38. --denominator below the fraction bar
  39. textcursor +char
  40. manualkerning 3
  41. manualkerning 3
  42. manualkerning 3
  43. manualkerning 3
  44. manualkerning 3
  45. manualkerning 3
  46. manualkerning 3
  47. manualkerning 3
  48. manualkerning 3
  49. manualkerning 3
  50. manualkerning 3
  51. manualkerning 3
  52. manualkerning 3
  53.  
  54. --Manually kern the numerator and fraction bar to center the 
  55. --numerator below the fraction bar
  56. textcursor -char
  57. manualkerning 3
  58. manualkerning 3
  59. manualkerning 3
  60. manualkerning 3
  61. manualkerning 3
  62. manualkerning 3
  63. manualkerning 3
  64. manualkerning 3
  65. manualkerning 3
  66. manualkerning 3
  67. manualkerning 3
  68. manualkerning 3
  69.  
  70. --Reset Type Position
  71. textcursor +char 2
  72. position normal
  73. typeoptions dontcare, 58.7, 33.3, 33.3
  74.  
  75.  
  76.  
  77. --End of script
  78.  
  79. --This script creates fractions with a horizontal (rather than a
  80. --diagonal) fraction bar.  Use this script for fractions with
  81. --single-digit numerators and denominators like 1/2 and 3/4.
  82.  
  83. --The process process uses the "underscore" character rather than 
  84. --a slash for the fraction bar.  The numerator and underscore are 
  85. --superscripted and the denominator is subscripted.  Then all 
  86. --three characters are positioned using PageMaker's Type Options.  
  87. --Finally, the characters are manually kerned into position.  Try it.  
  88. --It works!
  89.  
  90. --Follow these steps:
  91. --     1.  Print this script and use it for reference.
  92.  
  93. --     2.  Make sure your PageMaker publication is in a "saved" 
  94. --          state.
  95.  
  96. --     3.  Place the cursor (text tool) on the right side of the 
  97. --          denominator.  For example the digit "2" is the denominator 
  98. --          in the fraction 1/2.
  99.  
  100. --     5.  Be sure there are no spaces between the cursor and the 
  101. --          denominator.
  102.  
  103. --     6.  Select "Run Script" from the Additions pop-up menu under 
  104. --          the Options menu.
  105.  
  106. --     7.  Select the script "HorizontalFraction.script" from the Run 
  107. --          Script dialog box and click the "Run" button.
  108.  
  109. --     8.  Sit back and enjoy the ride!
  110.  
  111. --     9.  Find the next fraction and repeat steps 1-8.
  112.  
  113. --This script created by David Salwitz on 2/19/92.
  114.  
  115. --You may use this script free of charge and distribute it freely 
  116. --provided these comments remain intact.
  117.  
  118. --Aldus Corporation and/or David Salwitz assume no 
  119. --responsibility for any problems or inconveniences resulting 
  120. --from the use of this script.  Have fun!!
  121.  
  122. --end of script
  123.